﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Data.Objects;

namespace ErrorService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IService1
    {

        [OperationContract]
        string GetData(int value);

        [OperationContract]
        CompositeType GetDataUsingDataContract(CompositeType composite);

        [OperationContract]
         List<ErrorLogListele_Result> errorListele();

        [OperationContract]
        void errorEkle(int id,string aciklama,int islemTuru,string olusmaYeri);

        [OperationContract]
        List<KullaniciLoglariniCek_Result> KullaniciLogCek(DateTime baslangic, DateTime bitis, int islemTuru);

        [OperationContract]
        List<GirisLoglariniCek_Result> GirisLogCek(DateTime baslangic, DateTime bitis, int islemTuru);
        
        [OperationContract]
        List<MasaTipiLoglariniCek_Result> MasaTipiLogCek(DateTime baslangic, DateTime bitis, int islemTuru);

        [OperationContract]
        List<MasaLoglariniCek_Result> MasaLogCek(DateTime baslangic, DateTime bitis, int islemTuru);

        [OperationContract]
        List<MusteriLoglariniCek_Result> MusteriLogCek(DateTime baslangic, DateTime bitis, int islemTuru);

        [OperationContract]
        List<OncelikLoglariniCek_Result> OncelikLogCek(DateTime baslangic, DateTime bitis, int islemTuru);

        [OperationContract]
        List<RezervasyonLoglariniCek_Result> RezervasyonLogCek(DateTime baslangic, DateTime bitis, int islemTuru);
    }


    // Use a data contract as illustrated in the sample below to add composite types to service operations.
    [DataContract]
    public class CompositeType
    {
        bool boolValue = true;
        string stringValue = "Hello ";

        [DataMember]
        public bool BoolValue
        {
            get { return boolValue; }
            set { boolValue = value; }
        }

        [DataMember]
        public string StringValue
        {
            get { return stringValue; }
            set { stringValue = value; }
        }
    }
}
